<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>风险调查-调查任务</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="../js/plugins/layui/css/layui.css" rel="stylesheet">
    <link href="../css/plugins/steps/jquery.steps.css" rel="stylesheet">
    <link href="../js/plugins/mockselect/jquery.dropdown.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body>
<div class="wrapper wrapper-content">
    <div id="wizard" role="application" class="wizard clearfix">
        <div class="steps clearfix">
            <ul role="tablist">
                <li role="tab" class="done">
                    <a href="#wizard-h-0"><span class="number">第一步.</span> 风险登记</a>
                </li>
                <li role="tab" class="done">
                    <a href="risk_examine_form.html"><span class="number">第二步.</span> 风险审核</a>
                </li>
                <li role="tab" class="first current">
                    <a href="#wizard-h-2"><span class="number">第三步.</span> 风险调查</a>
                </li>
                <li role="tab" class="done">
                    <a href="#wizard-h-3"><span class="number">第四步.</span> 风险处置</a>
                </li>
            </ul>
        </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>协查信息</legend>
    </fieldset>
    <table class="table table-bordered" width="100%">
        <tbody>
        <tr>
            <td class="gray-bg" width="15%">
                协查发起单位
            </td>
            <td colspan="5">
                定王台街道
            </td>
        </tr>
        <tr>
            <td class="gray-bg">
                协查说明
            </td>
            <td colspan="5">
                该企业疑似通过虚构项目进行非法集资活动，风险比较严重，希望工商所协助联合调查。
            </td>
        </tr>
        <tr>
            <td class="gray-bg">
                办结时间
            </td>
            <td colspan="5">
                2018-04-24 12:00:00
            </td>
        </tr>
        </tbody>
    </table>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>企业基本信息</legend>
    </fieldset>
    <table class="table table-bordered">
        <tbody>
        <tr>
            <td width="12%" class="gray-bg">
                企业名称
            </td>
            <td>
                湖南雄墩控股集团有限公司
            </td>
            <td width="12%" class="gray-bg">
                所属街道
            </td>
            <td>
                定王台街道
            </td>
        </tr>
        <tr>
            <td width="12%" class="gray-bg">
                法定代表人
            </td>
            <td>
                罗振仁
            </td>
            <td class="gray-bg">
                所属行业
            </td>
            <td>
                交通运输、仓储和邮政业
            </td>
        </tr>
        <tr>
            <td class="gray-bg">
                注册时间
            </td>
            <td>
                2013-05-27
            </td>
            <td class="gray-bg">
                注册地址
            </td>
            <td>
                湖南省长沙市芙蓉区定王台街道芙蓉中路二段98号明城国际中心1702房
            </td>
        </tr>
        <tr>
            <td class="gray-bg">
                经营范围
            </td>
            <td colspan="3">
                投资管理服务；投资咨询服务（不含金融、证券、期货咨询）。（依法须经批准的项目，经相关部门批准后方可开展经营活动）
            </td>
        </tr>
        </tbody>
    </table>
    <form class="layui-form" action="">
        <fieldset class="layui-elem-field layui-field-title">
            <legend>协助调查内容</legend>
        </fieldset>
        <div class="layui-row">
            <div class="layui-col-xs6">
                <div class="layui-form-item">
                    <label class="layui-form-label">涉及人数<span class="text-danger"> *</span></label>
                    <div class="layui-input-block">
                        <select name="interest">
                            <option value="">请选择</option>
                            <option value="0">30人以下</option>
                            <option value="1">30-100人</option>
                            <option value="2">100-500人</option>
                            <option value="3">500-1000</option>
                            <option value="4">1000人以上</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="layui-col-xs6">
                <div class="layui-form-item">
                    <label class="layui-form-label">涉及金额<span class="text-danger"> *</span></label>
                    <div class="layui-input-block">
                        <select name="modules">
                            <option value="">请选择</option>
                            <option value="1">100万以下</option>
                            <option value="2">100-500万</option>
                            <option value="3">500-1000万</option>
                            <option value="4">1000-5000万</option>
                            <option value="5">5000万以上</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-xs6">
                <div class="layui-form-item">
                    <label class="layui-form-label">涉及区域<span class="text-danger"> *</span></label>
                    <div class="layui-input-block">
                        <div class="dropdown-mul-3">
                            <select name="xingshi" style="display: none !important;" lay-ignore multiple
                                    placeholder=""> </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-xs6">
                <div class="layui-form-item">
                    <label class="layui-form-label">主要收入来源</label>
                    <div class="layui-input-block">
                        <select name="interest" lay-filter="income">
                            <option value="">请选择</option>
                            <option value="0">经营获利</option>
                            <option value="1">对外投资</option>
                            <option value="2">中介服务费（介绍费、管理费、手续费等）</option>
                            <option value="3">其他</option>
                        </select>
                        <div class="otherObject" id="income">
                            <input type="text" name="eventName" autocomplete="off"
                                   class="layui-input" placeholder="请输入其他内容">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>附件</legend>
        </fieldset>
        <div class="layui-upload">
            <div class="layui-upload-list">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th>文件名</th>
                        <th>大小</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="demoList">
                    </tbody>
                </table>
            </div>
            <button type="button" class="layui-btn layui-btn-primary" id="testList">选择多文件</button>
            <button type="button" class="layui-btn" id="testListAction">开始上传</button>
        </div>
        <div class="layui-form-item">
            <div class="text-center">
                <a class="layui-btn" onclick="examineBtn()">提交调查结果</a>
            </div>
        </div>
    </form>
</div>
<!-- 全局js -->
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/plugins/layui/layui.all.js"></script>
<!-- Steps -->
<script src="../js/plugins/staps/jquery.steps.min.js"></script>
<script src="../js/plugins/mockselect/jquery.dropdown.js"></script>
<!-- 自定义js -->
<script>
    var jsonData3 = [{
        id: 1,
        name: "芙蓉区",
        selected: false
    }, {
        id: 2,
        name: "开福区",
        selected: false
    }, {
        id: 3,
        name: "天心区",
        selected: false
    }, {
        id: 4,
        name: "岳麓区",
        selected: false
    }
    ];
    $('.dropdown-mul-3').dropdown({
        data: jsonData3,
        limitCount: 40,
        multipleMode: 'label',
        choice: function () {
            // console.log(arguments,this);
        }
    });
    function examineBtn() {
        layer.confirm('您确定提交调查结果吗？', {btn: ['确定', '取消']}, function (index) {
            layer.close(index);
            top.loading({
                isShow: true,
                text: "正在操作..."
            });
            window.setTimeout(function () {
                top.loading({
                    isShow: false
                });
            }, 500);
            window.setTimeout(function () {
                top.layer.msg('操作成功！');
                parent.layer.closeAll();
            }, 800);
        });
    }
    layui.use('form', function(){
        var form = layui.form;
        form.on('select(income)', function(data){
            if(data.value==3){
                $("#income").show();
            }else{
                $("#income").hide();
            }
        });

    });
    layui.use('upload', function () {
        var $ = layui.jquery
            , upload = layui.upload;
        //多文件列表示例
        var demoListView = $('#demoList')
            , uploadListIns = upload.render({
            elem: '#testList'
            , url: '/upload/'
            , accept: 'file'
            , multiple: true
            , auto: false
            , bindAction: '#testListAction'
            , choose: function (obj) {
                var files = this.files = obj.pushFile(); //将每次选择的文件追加到文件队列
                //读取本地文件
                obj.preview(function (index, file, result) {
                    var tr = $(['<tr id="upload-' + index + '">'
                        , '<td>' + file.name + '</td>'
                        , '<td>' + (file.size / 1014).toFixed(1) + 'kb</td>'
                        , '<td>等待上传</td>'
                        , '<td>'
                        , '<button class="layui-btn layui-btn-mini demo-reload layui-hide">重传</button>'
                        , '<button class="layui-btn layui-btn-mini layui-btn-danger demo-delete">删除</button>'
                        , '</td>'
                        , '</tr>'].join(''));

                    //单个重传
                    tr.find('.demo-reload').on('click', function () {
                        obj.upload(index, file);
                    });

                    //删除
                    tr.find('.demo-delete').on('click', function () {
                        delete files[index]; //删除对应的文件
                        tr.remove();
                        uploadListIns.config.elem.next()[0].value = ''; //清空 input file 值，以免删除后出现同名文件不可选
                    });

                    demoListView.append(tr);
                });
            }
            , done: function (res, index, upload) {
                if (res.code == 0) { //上传成功
                    var tr = demoListView.find('tr#upload-' + index)
                        , tds = tr.children();
                    tds.eq(2).html('<span style="color: #5FB878;">上传成功</span>');
                    tds.eq(3).html(''); //清空操作
                    return delete this.files[index]; //删除文件队列已经上传成功的文件
                }
                this.error(index, upload);
            }
            , error: function (index, upload) {
                var tr = demoListView.find('tr#upload-' + index)
                    , tds = tr.children();
                tds.eq(2).html('<span style="color: #FF5722;">上传失败</span>');
                tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //显示重传
            }
        });
    });
</script>
</body>
</html>